summaryrefslogtreecommitdiffstats
path: root/src/audio_core/adsp/apps/audio_renderer/command_buffer.h
blob: 3fd1b09dc440923835dc73ad6528fac9011b67c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "audio_core/common/common.h"
#include "common/common_types.h"

namespace AudioCore::ADSP::AudioRenderer {

struct CommandBuffer {
    // Set by the host
    CpuAddr buffer{};
    u64 size{};
    u64 time_limit{};
    u64 applet_resource_user_id{};
    bool reset_buffer{};
    // Set by the DSP
    u32 remaining_command_count{};
    u64 render_time_taken_us{};
};

} // namespace AudioCore::ADSP::AudioRenderer